package org.easy.eao.spring.jpa;

import java.util.List;

import org.easy.eao.spring.jpa.model.Exam;
import org.springframework.orm.jpa.support.JpaDaoSupport;

public class TargetBean extends JpaDaoSupport {
	
	@SuppressWarnings("unchecked")
	public List<Exam> method(String student) {
		return (List<Exam>) getJpaTemplate().find("from Exam e where e.student = ?", student);
	}

}
